package com.accompany.service.impl;

import com.accompany.model.Dict;
import com.accompany.dao.DictMapper;
import com.accompany.service.DictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典表 服务实现类
 * </p>
 *
 * @author lfs
 * @since 2023-03-08
 */
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements DictService {

    @Autowired
    DictMapper mapper;

    @Override
    public List<Dict> getDicts(Long parent_id) {
        return mapper.getDicts(parent_id);
    }
}
